package com.xingda.packing.dmss.enums;

import lombok.Getter;

public enum WheelHeight {
    UNKONW(0, "未知"),
    LOW(1, "低"),
    HIGH(2, "高");

    WheelHeight(int typeId, String typeName) {
        this.typeId = typeId;
        this.typeName = typeName;
    }

    public static WheelHeight getByID(int typeId) {
        for (WheelHeight value : WheelHeight.values()) {
            if (value.getTypeId() == typeId) {
                return value;
            }
        }
        return UNKONW;
    }

    @Getter
    private final int typeId;

    @Getter
    private final String typeName;
}
